<%@ page import="java.util.Date" %>
<%@ page import="com.fumin.util.StringUtil" %><%--
  Created by IntelliJ IDEA.
  User: evans
  Date: 2018/4/24
  Time: 下午10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%
    String secrete = "WOCAONIMAGEBIgannilao123";
    String salt = "xxx";
    Date date =  new Date();
    String user = (String) session.getAttribute("user");
    if (user==null){
        user="cos";
    }
    String timeStamp = String.valueOf(date.getTime());
    String tocken = StringUtil.MD5(StringUtil.MD5(user+timeStamp+secrete)+salt);

    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
    request.setAttribute("basePath",basePath);

    request.setAttribute("user",user);
    request.setAttribute("time",timeStamp);
    request.setAttribute("auth",tocken);

%>
<%--<script type="text/javascript" src="../../js/jquery.min.js" charset="utf-8"></script>--%>
<%--<script type="text/javascript" src="../../js/main.js" charset="utf-8"></script>--%>
<script type="text/javascript" src="../../js/jquery.easyui.min.js" charset="utf-8"></script>
<%--<script src="../../js/clipboard.min.js"></script>--%>
<%--<script src="../../js/echarts.min.js"></script>--%>
<div class="header">
    <div class="wrapper">
        <a class="logo" href="#" title="www.soico.co">
            <img src="../../img/logo.png" alt="www.soico.co">
        </a>
        <div class="m-nav">
            <a href="" title="首页">首页</a>
            <a href="submit" title="发布项目">发布项目</a>
            <a href="projectsSkip?user=${user}&time=${time}&auth=${auth}" title="浏览项目">浏览项目</a>
            <a href="about" title="关于我们">关于我们</a>
        </div>
        <a href="javascript:;" class="u-btn-login">登录</a>
        <a href="javascript:;" class="u-btn-register">注册</a>
    </div>
</div>
